import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)
import cart from "./routes/cart"
import center from "./routes/center"
import classify from "./routes/classify"
import home from "./routes/home"
import list from './routes/list'

const routes = [
  cart,
  ...center,
  classify,
  home,
  ...list,
  {
    path: "/",
    redirect: "/home"
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
